package org.jeecg.modules.dashboard.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.dashboard.mapper.DashboardMapper;
import org.jeecg.modules.dashboard.service.IDashboardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @Description: 仪表盘统计服务实现类
 * @Author: jeecg-boot
 * @Date: 2025-09-15
 * @Version: V1.0
 */
@Slf4j
@Service
public class DashboardServiceImpl implements IDashboardService {

    @Autowired
    private DashboardMapper dashboardMapper;

    @Override
    public Map<String, Object> getMonthlyOrderStatistics() {
        return dashboardMapper.getMonthlyOrderStatistics();
    }
    
    @Override
    public Map<String, Object> getUserStatistics() {
        return dashboardMapper.getUserStatistics();
    }
}